<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>User List</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}"/>
    <style type="text/css">
        body {
            padding-top: 50px;
        }

        .starter-template {
            padding: 40px 15px;
            text-align: center;
        }
    </style>
</head>
<body>
<div th:replace="navbar::navbar"></div>
<div class="container">
    <table>
        <tr>
            <td>User Id</td>
            <td>User Name</td>
            <td>Password</td>
        </tr>
        <tr th:each="user, iterStat: ${users}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.username}"></td>
            <td th:each="role:${user.roles}" th:text="${role.roleName}"></td>
        </tr>
    </table>
</div>
</body>
</html>